	<?php $this->load->view('admin/partials/general_menu'); ?>
	<?php 
		$ci= &get_instance();	
		$team_array = $ci->team_entity->getArrayListOfTeam();
	?>
	
	<div class="clrboth"></div>
	<h3><?php echo ucfirst($this->uri->segment(4,''));?></h3>
	<?php $buttons = array('buttons'=>array('Add#add_team();') );?>
	<?php $this->load->view('admin/partials/buttons', $buttons ); ?>

	<div class="clrboth"></div>
	
	<table border="0" class="table-list">
		<thead>
			<tr>
				<th>ID</th>
				<th>Feed Team ID</th>
				<th>Team Name</th>
				<th>Code</th>
			<!--	<th>Sport</th>	-->
				<th>Flag</th>
				<th><?php echo lang('dataman.manage'); ?></th>
			</tr>
		</thead>
		
		<tbody>
			<?php foreach( $team_array as $item ): ?>
			<?php 
				$TEAM = $ci->team_entity->init('id',$item->id);
				$SPORT = $ci->sport_entity->init('id',$item->sport_id);
			?>
			<tr>
				<td><?php echo $TEAM->getId(); ?></td>
				<td><?php echo $TEAM->getFeedTeamId(); ?></td>
				<td><?php echo $TEAM->getName(); ?></td>
				<td><?php echo $TEAM->getCode(); ?></td>
			<!--	<td><?php //echo $SPORT->getName(); ?></td>	-->
				<td><?php echo thumb($TEAM->getMyFlagTeam(),60,60); ?></td>
				
				<td>
					<a href="javascript:void(0);" onclick="team_edit(<?php echo $TEAM->getId();?>)"><?php echo lang('dataman.edit');?></a>
					&nbsp;|&nbsp;
					<a href="javascript:void(0);" onclick="team_delete(<?php echo $TEAM->getId();?>)" ><?php echo lang('dataman.delete');?></a>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>


